]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
inputMethod: Honor the "private" IBusInputHint
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 30 Jan 2024 12:51:59 +0000 (13:51 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 29 Feb 2024 15:42:22 +0000 (16:42 +0100)
This enum value was added in IBus 1.5.26, forward our own
"sensitive data" enum that way to the IMs.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3162>

js/misc/inputMethod.js

index b393972ecb7839029ca0b7b0c4b5b0a505af966c..d8c3e62f0c7ae23723c0ee07f9eb9b183095ad50 100644 (file)
@@ -269,6 +269,8 @@ export const InputMethod = GObject.registerClass({
             ibusHints |= IBus.InputHints.UPPERCASE_CHARS;
         if (hints & Clutter.InputContentHintFlags.TITLECASE)
             ibusHints |= IBus.InputHints.UPPERCASE_WORDS;
+        if (hints & Clutter.InputContentHintFlags.SENSITIVE_DATA)
+            ibusHints |= IBus.InputHints.PRIVATE;
 
         this._hints = ibusHints;
         if (this._context)